package com.yixiaobai.swimming.error;

/**
 * @author yuyunlong
 * @date 2020/7/4 11:06 下午
 * @description
 */
public class ErrorCode {

    String tst = "test";
    String ttt = "111";

    public final static ErrorModel SYSTEM_ERROR = new ErrorModel(1, "系统故障test");

    public final static ErrorModel EXECUTE_FAIL = new ErrorModel(5000, "执行失败");

    public final static ErrorModel PARAM_ERROR = new ErrorModel(9000, "缺少必要参数");

    public final static ErrorModel USERNAME_EXIST_ERROR = new ErrorModel(9001, "用户已存在");

    public final static ErrorModel PASSWORD_ERROR = new ErrorModel(9002, "密码只能6-12位");

    public final static ErrorModel PHONE_ERROR = new ErrorModel(9003, "手机号格式不正确");

    public final static ErrorModel PHONE_EXIST_ERROR = new ErrorModel(9004, "手机号已被注册");

    public final static ErrorModel LOGIN_FAIL_ERROR = new ErrorModel(8000, "登录失败");

    public final static ErrorModel REGISTER_FAIL = new ErrorModel(8001, "注册失败");

    public final static ErrorModel PERMISSION_DENY_ERROR = new ErrorModel(8002, "你是普通用户，无权限添加新用户");

    public final static ErrorModel NOT_LOGIN_ERROR = new ErrorModel(8003, "未登陆");

    public final static ErrorModel TOKEN_ERROR = new ErrorModel(8004, "token错误");

    public final static ErrorModel USERNAME_NOT_EXIST_ERROR = new ErrorModel(8005, "要删除的用户信息不存在");


}
